﻿/*****************************************************************//**
 * @file    FITKViewAdaptorSpringPoint2PointPreview.h
 * @brief   Graph object data adaptor for previewing point to point spring.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-06-21
 *********************************************************************/

#ifndef __FITKVIEWADAPTORSPRINGPOINT2POINTPREVIEW_H__
#define __FITKVIEWADAPTORSPRINGPOINT2POINTPREVIEW_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for previewing point to point spring.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-06-21
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorSpringPoint2PointPreview : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorSpringPoint2PointPreview);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-06-21
         */
        explicit FITKViewAdaptorSpringPoint2PointPreview() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-06-21
         */
        ~FITKViewAdaptorSpringPoint2PointPreview() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-06-21
         */
        bool update() override;

    };

    // Regist spring adaptor
    Register2FITKViewAdaptorFactory(SpringP2P_Preview, Interface::FITKAbaSpringDashpotPoint2Point, FITKViewAdaptorSpringPoint2PointPreview);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORSPRINGPOINT2POINTPREVIEW_H__